package com.xdf.ecommerce.service;

import com.xdf.ecommerce.entity.EcommerceGoods;
import com.xdf.ecommerce.goods.DeductGoodsInventory;
import com.xdf.ecommerce.goods.GoodsInfo;
import com.xdf.ecommerce.goods.SimpleGoodsInfo;
import com.xdf.ecommerce.vo.PageSimpleGoodsInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Objects;

/**
 * @author chanchaw
 * @create 2025-10-27 23:13
 */
public interface IGoodsService {
    List<SimpleGoodsInfo> queryGoods4DBAndCached2Redis(List<Long> ids);
    List<SimpleGoodsInfo> parseCacheGoodsInfo(List<Object> cachedSimpleGoodsInfo);
    EcommerceGoods findByGoodsNameAndMultCategory(String goodsCategory, String brandCategory, String goodsName);
    List<EcommerceGoods> insertBatch(List<EcommerceGoods> goods);
    List<GoodsInfo> getGoodsInfo8Id(List<Long> ids);
    PageSimpleGoodsInfo getSimpleGoodsInfo8Page(int page);
    SimpleGoodsInfo getSimpleGoodsInfo8Id(Long id);
    Boolean deductGoodsInventory(List<DeductGoodsInventory> deductGoodsInventoryList);
}
